package com.msb.error;

/**
 * @ClassName: CommonExceptionEnum
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/8/4-09:18
 * @Version 1.0
 */
public enum CommonExceptionEnum implements ExceptionCode{
    SUCCESS(200,"SUCCESS","OK"),
    FAIL(500,"FAIL", "服务器异常"),
    BAD_REQUEST(400,"BAD_REQUEST","服务器异常"),
    TOKEN_NOT_NULL(403,"TOKEN_NOT_NULL", "请输入令牌")
    ;
    private Integer code;
    private String name;
    private String message;

    private CommonExceptionEnum(Integer code, String name, String message) {
        this.code = code;
        this.name = name;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }



    @Override
    public String getMessage() {
        return message;
    }
}
